package com.li.spring6.service;

import com.li.spring6.dao.PetDao;
import com.li.spring6.dao.UserDao;

public class PetServiceImpl {
    private UserDao userDao;
    private PetDao petDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setPetDao(PetDao petDao) {
        this.petDao = petDao;
    }

    public void save() {
        userDao.insert();
        petDao.insert();
    }
}
